@import "../../../theme/global.module";
$active-color: #2cabd4;

// 控制面板 | 整体
.homePanel{
  height: 100%;
  overflow-y: auto;
  .bgImgUploadPreview{
    width: 100%;
    height: 100px;
    background-size: contain;
    background-position: center center;
    position: relative;
    &:hover{
      .innerTip{
        display: flex;
      }
    }

    .innerTip{
      display: none;
      position: absolute;
      background: rgba(0,0,0,.03);
      left: 0;
      right: 0;
      bottom: 0;
      top: 0;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      cursor: pointer;
      p{
        :global(.anticon){
          color: $active-color;
          font-size: 40px;
        }
      }
      h3{
        font-weight: 400;
      }
    }
  }
  .wrapperRowBox{
    overflow: hidden;

  }
}

// 组件面板
.chartPanelCommon{
  height: 100%;
  :global{
    .#{$ant-prefix}-tabs{
      height: 100%;
      .#{$ant-prefix}-tabs-nav{
        margin-bottom: 0;
      }
      .#{$ant-prefix}-tabs-content{
        height: 100%;
      }
    }
  }

  .chartPanelContent{
    height: 100%;
    overflow-y: auto;
    @include scrollbar_theme
  }
}

// 编程容器
.codeEditorBox{
  width: 100%;
  height: 100%;
  position: relative;


  ul.tool{
    padding: 0 10px;
    margin: 0;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
    li{
      height: 24px;
      line-height: 24px;
      margin-right: 10px;
      float: left;
      >i, >:global(.anticon), >:global(.iconfont){
        cursor: pointer;
        font-size: 14px;
        &:hover{
          color: #2cabd4;
        }
      }
      &.save, &.apply{
       float: right;
      }
    }
  }

  .codingSign{
    display: flex;
    justify-content: center;
    align-content: center;
    height: 200px;
    flex-wrap: wrap;
    font-size: 16px;
    :global{
      .anticon{
        font-size: 46px;
        width: 100%;
        margin-bottom: 20px;
      }
    }
  }

}

.errorTip{
  &.hidden{
    display: none;
  }
  &.success{
    background: rgba(108, 212, 44, 0.1);
    color: #2cabd4;
  }
  position: absolute;
  bottom: 0;
  width: 100%;
  color: red;
  height: 24px;
  font-size: 14px;
  line-height: 24px;
  padding: 0 10px;
  z-index: 9999;
  background: rgba(255, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  .errorMsg{
    margin: 0 10px 0 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .row{
    flex-wrap: nowrap;
    color: #000;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
  }
}
